[FORMAT "WCOFF"]
[INSTRSET "i486p"]
[BITS 32]
[FILE "api012.nas"]

    GLOBAL _api_malloc

[SECTION .text]

_api_malloc:        ; char *api_malloc(int size);
    push ebx
    mov edx, 12
    mov ebx, [cs:0x0020]
    mov ecx, [esp+8]        ;size
    int 40h
    pop ebx
    ret
